package com.dc.common.model;

import java.io.Serializable;

import org.springframework.web.multipart.MultipartFile;

import com.wordnik.swagger.annotations.ApiModelProperty;

public class BaseModel implements Serializable {

	private static final long serialVersionUID = 1L;
	/**
	 * 用于方法返回页面时
	 */
	int code = 0;// 正确消息是0;未登录9，无权限8，重复提交7。

	String message = "";// 存放返回的消息
	
	String messageEX = "";//错误的异常信息

	Object data = null;// 存放查询结果集

	String token = "";//防表单重复提交token

	/**
	 * 用于切面返回方法时
	 */
	String aopMsg = "";// 切面消息

	/**
	 * 用于传入时
	 */
	String ids = "";// 用于多条删除时存放ids

	MultipartFile[] tempMFile = null;// 用于文件导入时存放文件

	String fileNameList="";// 用于存放文件上传的路径

	String roleValue = "";// 用于存放权限值

	String searchRole="";// 用于存放查询权限，1查全，2查部门，3查私，0无权限;
	// 审批时标记0手动送审还是1自动送审;

	String pathRole="";// 查询文件时返回0tomcat服务器地址、1文件服务器地址

	//PageInfo pageInfo = new PageInfo();// 页面信息

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public String getAopMsg() {
		return aopMsg;
	}

	public void setAopMsg(String aopMsg) {
		this.aopMsg = aopMsg;
	}

	public String getIds() {
		return ids;
	}

	public void setIds(String ids) {
		this.ids = ids;
	}

	public MultipartFile[] getTempMFile() {
		return tempMFile;
	}

	public void setTempMFile(MultipartFile[] tempMFile) {
		this.tempMFile = tempMFile;
	}

	public String getFileNameList() {
		return fileNameList;
	}

	public void setFileNameList(String fileNameList) {
		this.fileNameList = fileNameList;
	}

	public String getRoleValue() {
		return roleValue;
	}

	public void setRoleValue(String roleValue) {
		this.roleValue = roleValue;
	}

	public String getSearchRole() {
		return searchRole;
	}

	public void setSearchRole(String searchRole) {
		this.searchRole = searchRole;
	}

	public String getPathRole() {
		return pathRole;
	}

	public void setPathRole(String pathRole) {
		this.pathRole = pathRole;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getMessageEX() {
		return messageEX;
	}

	public void setMessageEX(String messageEX) {
		this.messageEX = messageEX;
	}
	

}
